Compare Model Workspace is a powerful tool that allows you to compare two model workspaces, view and resolve differences between them.
Navicat Data Modeler provides a step-by-step wizard for you to complete the task:
In the Workspace window, choose Tools -> Compare Model Workspace.
Select the workspace you want to sync with the current workspace.
Click Compare to show the differences between source and target objects.
Select the objects you want to synchronize.
Click Apply Changes to view the number of changes.
Click Apply.
The first step is to define the source workspace. You can choose an existing workspace in Navicat Data Modeler or an external workspace file.
Then, click the Compare button.
After comparing, the tree view shows the differences between the source and target workspaces. Check the objects you want to apply to the target. You can expand the objects to view the detailed structure.
Choose an option from the drop-down list to show the objects.
Option |
Description |
All Objects |
Show all objects in the source and target. |
Objects with Difference |
Show all objects that are different in the source and target. |
Objects To Be Added |
Only show the objects that do not exist in the target. |
Objects To Be Updated |
Only show the objects that exist in both source and target, but they have different structures. |
Objects To Be Deleted |
Only show the objects that do not exist in the source. |
When you selected an object in the tree view, the DDL Comparison tab shows the DDL statements/scripts of that object in the source and the target, and the Reference Script tab shows the detailed statements/scripts of the object that will be executed in the target database.
Click the Apply Changes button to apply changes to the selected objects.